<template>
  <view class="my-container">
    <!-- 登录页面 -->
    <shop-my-login v-if="!token"></shop-my-login>
    <!-- 用户信息页面 -->
    <shop-my-userinfo v-else></shop-my-userinfo>
  </view>
</template>

<script>
  import
  badgeMix
  from "@/mixins/tabbar-badge.js"
  import {
    mapState
  } from "vuex"
  export default {
    mixins: [badgeMix],
    computed: {
      ...mapState("m_user", ["token"])
    },
    data() {
      return {

      };
    }
  }
</script>

<style lang="scss">
  page,
  .my-container {
    height: 100%;
  }
</style>